home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Focus for Success
/
Focus for Success.iso
/
pc
/
game2.dxr
/
00151_Field_151.txt
< prev
next >
Wrap
Text File
|
1995-02-28
|
1KB
|
60 lines
on gamebutton
global glcount,gltime,gseconds,glsubject2,glsubject1,ganswer1
showglobals
setaProp (gltime, 2, the ticks)
set me = the castNum of sprite the clickOn
set X3 = the text of cast me
IF X3=ganswer1 THEN
set A = getaProp(gltime,1)
set B = getaProp(gltime,2)
PUT(B-A) INTO T1
set X = getaProp(glcount,1)
set Y = gseconds-1
IF Y-X<0 THEN
go "GAME OVER"
mathscore
EXIT
END IF
PUT 60*(Y-X) INTO T2
IF T1<T2 THEN
set CT = count(glsubject1)
setaProp (glcountnum, 2, (getaProp(glcountnum,2)+1))
setaProp(glsubject1,CT+1,T1)
setaProp(glcountnum,3,0)-- this should be a line two!!!!
correcthandler
END IF
IF T1>T2 THEN
sorryhandler
END IF
END IF
IF X3<>gAnswer1 THEN
wrongHandler
setaProp (glcountnum,5,getaProp(glcountnum,5)+1)
END IF
put "ppp"
setaProp(glcount,1,getaProp(glcount,1)+1)
Startgame2
end gamebutton
on wronghandler
put "wrong"
end wronghandler
on sorryhandler
put "sorry it took to long"
end sorryhandler
on correcthandler
put "you are correct"
end correcthandler
on mathscore
end mathscore